projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ac6528
)
(c-indent-line): Don't erase ^L when a line containing it is re-indented.
author
Alan Mackenzie
<acm@muc.de>
Sun, 4 Feb 2007 11:16:54 +0000
(11:16 +0000)
committer
Alan Mackenzie
<acm@muc.de>
Sun, 4 Feb 2007 11:16:54 +0000
(11:16 +0000)
lisp/progmodes/cc-cmds.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/cc-cmds.el
b/lisp/progmodes/cc-cmds.el
index 96924899ea3f69e297ea8e356d31438a1b5c0987..f8375d7fe369bef0ada6d3a74189b82cdaa0982b 100644
(file)
--- a/
lisp/progmodes/cc-cmds.el
+++ b/
lisp/progmodes/cc-cmds.el
@@
-78,8
+78,10
@@
indentation change \(in columns)."
(save-excursion
(beginning-of-line)
(looking-at (if line-cont-backslash
- "\\(\\s *\\)\\\\$"
- "\\(\\s *\\)$")))
+ ;; Don't use "\\s " - ^L doesn't count as WS
+ ;; here
+ "\\([ \t]*\\)\\\\$"
+ "\\([ \t]*\\)$")))
(<= (point) (match-end 1)))
;; Delete all whitespace after point if there's only whitespace
;; on the line, so that any code that does back-to-indentation